import request from "../axios";
const userHttp = {
  login(body){
    return request({
      method:'post',
      url:'/user/login',
      data:body,
      isLoading:true,
      // headers:{
			// 	'Content-type': 'multipart/form-data'
			// },
    })
  },
  getCode(){
      return request.get('/common/getCode')
  },
  getUser(params){
    return request.get('/user/getUser',{params})
  },
  getNews(params){
    return request.get('/user/news',{params})
  },
  getNoUser(params){
    return request.get('/user/noUser',{params})
  },
  applyFriend(params){
    return request.get('/user/applyFriend',{params})
  },
  userList(params) {
    return request.get('/user/page',{params})
  },
  userPer(params){
    return request.get('/user/changePer',{params})
  },
  saveUser(data){
    return request.post('/user/save',data)
  },
  uploadImg(data){
    return request.post('/user/upload',data)
  }
}
export default userHttp